/**============================================================================
 Confidential Information - Limited distribution to authorized persons only.
 This software is protected as an unpublished work under the U.S. Copyright
 Act of 1976.

 Copyright (c) 2011, BluePhoenix Solutions, Inc. All rights reserved.
 ----------------------------------------------------------------------------
 file......: NotepadButtonsPane.java
 Author....: Vyacheslav Kovalyov
 Created...: 23.10.11

 Description:

 ============================================================================*/
package ru.monyag.pred.swing.ui.notepad;

import ru.monyag.pred.swing.ui.buttons.BaseSwingButton;

import javax.swing.*;
import java.awt.*;

import static java.awt.BorderLayout.CENTER;
import static ru.monyag.pred.swing.util.PredSwingConstants.ADD_ICON;
import static ru.monyag.pred.swing.util.PredSwingConstants.DELETE_ICON;

/**
 * @author Vyacheslav Kovalyov
 * @version 1.0
 */
public class NotepadButtonsPanel extends JPanel {

    public NotepadButtonsPanel() {

        super(new BorderLayout());

        Box box = Box.createHorizontalBox();

        box.add(new BaseSwingButton(ADD_ICON, CENTER_ALIGNMENT) {
            @Override
            public void onClick() {
                //todo add
            }
        });

        box.add(new BaseSwingButton(DELETE_ICON, CENTER_ALIGNMENT) {
            @Override
            public void onClick() {
                //todo remove
            }
        });

        add(box, CENTER);
    }
}
